package com.packenius.library.xspdf;

/**
 * A text word with a font usage. This is part of a text line on a PDF page.
 * @author Christian Packenius.
 */
class XSTextPart {
  final String text;

  final XSFontUsage fontUsage;

  final double width;

  final XSLink link;

  double realX1 = 0.0;

  double realX2 = 0.0;

  /**
   * Constructor.
   * @param textWord
   * @param fontUsage
   * @param width
   * @param link
   */
  public XSTextPart(String textWord, XSFontUsage fontUsage, double width, XSLink link) {
    text = textWord;
    this.fontUsage = fontUsage;
    this.width = width;
    this.link = link;
  }
}
